/**
 * 
 */
package kr.co.insoft.driver.amazon.model;

import kr.co.insoft.driver.model.HardwareProfileModel;
import kr.co.insoft.driver.util.NullExcludeTransformer;

import com.amazonaws.services.ec2.model.InstanceType;

import flexjson.JSONSerializer;

/**
 * @author IN-SOFT Inc. GoodwillDD(sylee@in-soft.co.kr)
 * 
 */
public class AmazonHardwareProfileModel extends HardwareProfileModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1327072750049672800L;

	/**
	 * @param type
	 */
	public AmazonHardwareProfileModel(InstanceType type) {
		setId(type.name());
		setName(type.name());
	}
	
	public String toString() {
		return (new JSONSerializer())
				.transform(new NullExcludeTransformer(), void.class)
				.exclude("*.class").deepSerialize(this);
	}

}
